package com.oig.sys.auth.service;

import com.oig.sys.auth.dto.ResourceDto;
import com.oig.sys.auth.vo.ResourceVo;

import java.util.List;


/**
 * @author wuxl
 */
public interface ITbResourceService {


    ResourceVo getResourceInfo(Integer resourceId);
    ResourceVo getResourceInfo(String resourceCode,Integer userId);
    /**
     * 添加 菜单 按钮
     */
    ResourceVo addResource(ResourceDto resourceDto) ;

    ResourceVo updateResource(ResourceDto resourceDto) ;

    void cancelResource(Integer resourceId) ;

    void revertResource(Integer resourceId) ;

    void delResource(Integer resourceId);

    List<ResourceVo> findResourceTree(Integer systemId) ;

    List<ResourceVo> findUserResourceTree(Integer systemId) ;

    void delResourceBySystemId(Integer systemId);
}
